package battle.battleFightData
{
	public class BattleTextData implements XMLSerializable
	{
		private var _x:Number;
		private var _y:Number;
		private var _rotation:Number;
		private var _scaleX:Number;
		private var _scaleY:Number;
		private var _alpha:Number;
		
		public function BattleTextData()
		{
		}
		
		public function get alpha():Number
		{
			return _alpha;
		}

		public function set alpha(value:Number):void
		{
			_alpha = value;
		}

		public function get scaleY():Number
		{
			return _scaleY;
		}

		public function set scaleY(value:Number):void
		{
			_scaleY = value;
		}

		public function get scaleX():Number
		{
			return _scaleX;
		}

		public function set scaleX(value:Number):void
		{
			_scaleX = value;
		}

		public function get rotation():Number
		{
			return _rotation;
		}

		public function set rotation(value:Number):void
		{
			_rotation = value;
		}

		public function get y():Number
		{
			return _y;
		}

		public function set y(value:Number):void
		{
			_y = value;
		}

		public function get x():Number
		{
			return _x;
		}

		public function set x(value:Number):void
		{
			_x = value;
		}

		public function toXml():XML
		{
			var xmlObj:XML = <text/>
//			xmlObj.@x = toRoundString(_x);
//			xmlObj.@y = toRoundString(_y);
//			if(rotationOut)
//				xmlObj.@rotation = toRoundString(_rotation);
//			if(scaleXOut)
//				xmlObj.@scaleX = toRoundString(_scaleX);
//			if(scaleYOut)
//				xmlObj.@scaleY = toRoundString(_scaleY);
//			if(alphaOut)
//				xmlObj.@alpha = toRoundString(_alpha);
			return xmlObj;
		}
		
		public function fromXml(xml:XML):void
		{
			this._x = xml.@x;
			this._y = xml.@y;
			this._alpha = xml.@alpha;
			this._rotation = xml.@rotation;
			this._scaleX = xml.@scaleX;
			this._scaleY = xml.@scaleY;
		}
	}
}